import { defineStore } from 'pinia'
import { ref } from 'vue';
import { ktluser } from '@/utils';

// 组合式 store
export const useUserStore = defineStore('user', () => {
	
	const currentRoles = ref<any[]>(ktluser.Roles());
	
	const setCurrentRoles = (inCurrentRoles: any) => currentRoles.value = inCurrentRoles;
	
	return {
		currentRoles,
		setCurrentRoles
	}
})